Imports System.Data.SqlClient
Public Class Accidents
    Public Shared Function GetAccident() As DataTable

        Str = "SELECT ACCIDENT_ID,EMPLOYEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )', ACCIDENT_DATE,ACCIDENT_TIME,INJURY_STATUS,PROPERTY_DAMAGE,DESCRIPTION,LOCATION,WITNESS,MODIFY_BY,ACTIVE FROM  VIEW_ACCIDENTS  WHERE ACTIVE=1 ORDER BY ACCIDENT_ID ASC"

        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function
End Class